package com.fzg.service;

import com.fzg.common.enums.ResponseWrapper;
import com.fzg.common.model.collection.param.GetCurrentUserCollectionParam;
import com.fzg.common.model.collection.param.UserCollectionParam;
import com.fzg.entity.UserCollectionComrecruit;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author fzg
 * @since 2022-03-25
 */
public interface UserCollectionComrecruitService extends IService<UserCollectionComrecruit> {

    ResponseWrapper getCurrentUserCollection(GetCurrentUserCollectionParam param);

    /**
     * 用户收藏公司的岗位信息
     * @param param 参数
     * @return ResponseWrapper
     */
    ResponseWrapper userCollection(UserCollectionParam param);

    /**
     * 判断当前这个职位是否被收藏
     * @param param 参数
     * @return ResponseWrapper
     */
    ResponseWrapper checkThisWorkIsCollection(UserCollectionParam param);

    /**
     * 取消收藏
     * @param param 参数
     * @return ResponseWrapper
     */
    ResponseWrapper cancelCollection(UserCollectionParam param);

}
